package com.ctsi.canal.starter.factory;



import com.ctsi.canal.starter.handler.EntryHandler;

import java.util.Set;

/**
 * @author ajh
 * @date 2019/10/24 15:24
 */
public interface IModelFactory<T> {


    <R> R newInstance(EntryHandler entryHandler, T t) throws Exception;


    default <R> R newInstance(EntryHandler entryHandler, T t, Set<String> updateColumn) throws Exception {
        return null;
    }
}
